/*
 * @Author       : 乐乐侠在此
 * @Date         : 2024-02-21 08:55:15
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2024-02-22 09:12:25
 * @Description  : 请填写简介
 */
#include<iostream>
using namespace std;

class base {
    public:
    virtual void a(){cout<<"this is base class"<<endl;}
};

class sub : public base {
    public:
    //virtual void a(){ cout<<"this is sub class but virtual"<<endl;}
    void a(){ cout<<"this is sub class but not virtual"<<endl;}
};

int main(){
    sub tmp;
    tmp.a();
}